package router

import (
	"github.com/gin-gonic/gin"
	"live-stream-pro/handler"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/Register", handler.Register)
	r.POST("/login", handler.Login)
	r.POST("/liveAdd", handler.LiveAdd)
	r.GET("/liveList", handler.LiveList)
	return r
}
